<div id="edit-author-form-ctr">
	<form action="editauthor.php?id=<?php echo $this->author->id; ?>" 
		id="edit-author-form" 
		method="post" 
		x:failed="alert" 
		x:done="save_author">
		<label for="name">Name:</label>
		<br />
		<input type="text" name="name" id="name" 
			value="<?php echo $this->escape($this->author->name); ?>" />
		
		<br />
		<br />
		<input type="submit" value="Save" />
		<input type="reset" value="Cancel" onclick="$.Agrid.activeInstance.dialog.dialog('close');" />
	</form>
</div>
<script type="text/javascript">
Morf.run('edit-author-form');
function save_author(data) {
	$.Agrid.activeInstance.closeEditor(data);
}
</script>